package cn.zjutleo.village_server.service.converter;

import cn.zjutleo.village_server.dto.AccurateSupportApplyDto;
import cn.zjutleo.village_server.dto.AccurateSupportSurveyDto;
import cn.zjutleo.village_server.entity.AccurateSupportApply;
import cn.zjutleo.village_server.entity.AccurateSupportSurvey;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @author : Qin Zhenghan
 * @date : Created in 2021/10/2
 * @description: 精准帮扶实体转化类
 */
@Mapper
public interface AccurateSupportConverter {

    AccurateSupportConverter INSTANCES = Mappers.getMapper(AccurateSupportConverter.class);

    @Mapping(target = "id", ignore = true)
    @Mapping(target = "userId", ignore = true)
    @Mapping(target = "applyTime", ignore = true)
    AccurateSupportApply dtoToEntity(AccurateSupportApplyDto accurateSupportApplyDto);
}
